package com.mm.serivce.taxi;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mm.domain.taxi.DTaxiAddressInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户打车地址表 服务类
 * </p>
 *
 * @author JueDream
 * @since 2021-08-04
 */
public interface IDTaxiAddressInfoService extends IService<DTaxiAddressInfo> {

    /**
     * @param page
     * @param limit
     * @param addressForm
     * @param addressLast
     * @return
     */
    Page<DTaxiAddressInfo> queryAddressPage(Integer page, Integer limit, String addressForm, String addressLast);

    /**
     * 打车地址下拉菜单
     * @return
     */
    List<DTaxiAddressInfo> queryTaxiAddressAll();

    /**
     * 打车地址单个
     * @param taxiId
     * @return
     */
    DTaxiAddressInfo queryAddressOne(Integer taxiId);

    /**
     * 打车地址逻辑删除
     *
     * @param taxiId
     * @return
     */
    boolean removeAddress(Integer taxiId);

}
